package com.zm.demo.core;

import org.apache.tools.ant.util.Watchdog;
import org.junit.Test;

/**
 * user: z01140
 * date: 2021/5/12 11:01
 */
public class LongTest {


    @Test
    public void test(){
        Watchdog watchdog = new Watchdog(10000L);
        watchdog.start();
        try {
            Thread.sleep(5000L);
        } catch (Exception e){
            e.printStackTrace();
        }
        watchdog.stop();
    }
}
